package com.imu.wys;

public class Director {
    MoAttak moAttack;

    public void setMoAttack(MoAttak moAttack) {
        this.moAttack = moAttack;
    }

    public void directMoive(){
        moAttack.cityGateAsk();
    }

    public static void main(String[] args) throws Exception {
//        ApplicationContext beanFactory = new ApplicationContext("D:\\04MyNewWorkspace\\IDEAWork\\Job8\\src\\main\\resources\\applicationContext.xml");
        ApplicationContext beanFactory = new ApplicationContext("src\\main\\resources\\applicationContext.xml");
        Director director=(Director)beanFactory.getBean("director");
        director.directMoive();
    }

}
